package com.elibrary;

import android.app.Activity;
import android.graphics.Typeface;
import android.os.Bundle;
import android.view.Window;
import android.widget.Button;
import android.widget.LinearLayout;

/**
 * Created with IntelliJ IDEA.
 * User: Enkuso
 * Date: 11/29/12
 * Time: 4:45 PM
 * To change this template use File | Settings | File Templates.
 */
public class MainMenu extends Activity {
    private LinearLayout mLinearLayout;

    @Override
    protected void onCreate(Bundle savedInstanceState) {

        super.onCreate(savedInstanceState);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.main_menu);

        //get references to UI components
        mLinearLayout = (LinearLayout) findViewById(R.id.linearLayout_focus);

        /*
        Button btn = (Button) findViewById(R.id.latestBtn);
        Typeface font = Typeface.createFromAsset(getAssets(), "Mogul Presquite.ttf");
        btn.setTypeface(font);
        */
    }

    @Override
    protected void onResume() {
        super.onResume();

        //do not give the editbox focus automatically when activity starts
        mLinearLayout.requestFocus();
    }
}
